/*
 * @Description: 
 * @Author: Aroma
 * @Date: 2024-09-13 10:46:33
 * @LastEditors: Aroma
 * @LastEditTime: 2024-09-13 15:19:15
 * @别瞎看: 你个无脑牛马
 */
public class Dog extends Animal{
    public int num=20;
    private String color;
    public Dog(){
        System.out.println("调用Dog的无参构造器");
    }
    public Dog(String name,int num,String color){
        super(name,num);
        this.color=color;
        System.out.println("调用Dog的两参构造器");
    }
    public void showNum(int num){
        System.out.println(("num:"+num));
        System.out.println(("this.num:"+this.num));
        System.out.println(("super.num:"+super.num));
    }
    public void showNum(){
        System.out.println(("num:"+num));
        System.out.println(("this.num:"+this.num));
        System.out.println(("super.num:"+super.num));
    }
    public void color(String color){
        System.out.println(("自有  color:"+color));
    }

    public void sayHello(){
        System.out.println(("继承  name:"+getName()));
        System.out.println(("继承  num:"+num));
    }
}